package com.showT.dao;

import com.showT.domain.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface IUsersDao {

    @Insert("insert into users(username,password,telephone) values(#{username},#{password},#{telephone})")
    void save(Users users);

    @Select("select * from users where username = #{username}")
    Users findByUsername(String username);
}
